<template>
  <div>
      <div class="searchBox">
        <el-input
          placeholder="请输入内容"
          prefix-icon="el-icon-search"
          v-model="brandy">
        </el-input>
      </div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      query: {
        brandy:'',
      },
      page: {},
      column:[],
      tableData: [],
    }
  },
  computed:{
    ids() {
      let ids = [];
      this.selectionList.forEach(ele => {
        ids.push(ele.id);
      });
      return ids.join(",");
    }
  },
  created () {
    this.onLoad()
    this.getList()
  },
  methods: {
    getList() {
      this.tableData = [
        {
          id: 30,
          carNo: '主管',
          VehicleBrand: '技术负责人',
          seatings:  '技术负责人',
          ShiftingMode:  '技术负责人',
          price:  '123',

        },
        {
          id: 30,
          carNo: '主管',
          VehicleBrand: '技术负责人',
          seatings:  '技术负责人',
          ShiftingMode:  '技术负责人',
          price:  '123',

        },
        {
          id: 30,
          carNo: '主管',
          VehicleBrand: '技术负责人',
          seatings:  '技术负责人',
          ShiftingMode:  '技术负责人',
          price:  '123.00',

        },
        {
          id: 30,
          carNo: '主管',
          VehicleBrand: '技术负责人',
          seatings:  '技术负责人',
          ShiftingMode:  '技术负责人',
          price:  '123.00',

        },
        {
          id: 30,
          carNo: '主管',
          VehicleBrand: '技术负责人',
          seatings:  '技术负责人',
          ShiftingMode:  '技术负责人',
          price:  '123.00',
        },
      ]
    },
    //选中
    selectionChange(list) {
      this.selectionList = list;
    },
    //清空选中
    selectionClear() {
      this.selectionList = [];
    },
    searchChange(){
      this.page.currentPage =1;
      this.onLoad(this.page, this.query);
    },
    //分页
    currentChange(currentPage){
      this.page.currentPage = currentPage;
      this.onLoad(this.page);
    },
    sizeChange(pageSize){
      this.page.pageSize = pageSize;
      this.onLoad(this.page);
    },
    onLoad(page, params = {}) {
      this.loading = true;
      // getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
      //   const data = res.data.data;
      //   this.page.total = data.total;
      //   this.data = data.records;
      //   this.loading = false;
      //   this.selectionClear();
      // });
    },
    /////////////////////////////
    addOrUpdateHandle(){
      this.$router.push('/addCar')
    },

  }
}
</script>

<style lang="less" scoped>
.el-input__inner{
  border-radius: 1000px !important;
  height: 80px;
}
</style>
